import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    }
  },

  define: {
    'process.env': {
    }
  },

  server: {
      proxy:{
        '/dev-api':{
          target:'http://192.168.110.118:8080',
          changeOrigin:true,
          rewrite:(path) => path.replace(/^\/dev-api/,'')
        }
      }
  },
  plugins: [vue()]
})
